﻿using RBAC.MaHaiBo.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.MaHaiBo.Service
{
    public interface IMenuService
    {
        /// <summary>
        /// 添加菜单
        /// </summary>
        /// <param name="menu">要添加的数据</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddMenu(Menu menu);
        /// <summary>
        /// 显示全部菜单列表
        /// </summary>
        /// <returns>返回数据列表集合</returns>
        Task<FenYeDTO<MenuDTO>> GetAllMenuList(int poageiden, int pageSzen, string? Name);
        /// <summary>
        /// 菜单列表显示
        /// </summary>
        /// <returns>返回数据列表集合</returns>
        Task<List<Tmeen>> GetAllTmeenMenuList(int Uid);
        /// <summary>
        /// 显示父级列表
        /// </summary>
        /// <returns>返回 显示父级列表</returns>
        Task<List<Menu>> GetMenuList();
        /// <summary>
        /// 修改菜单信息
        /// </summary>
        /// <param name="menu">修改后的数据信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> UpdateMenu(Menu menu);
        /// <summary>
        /// 删除菜单信息
        /// </summary>
        /// <param name="Pid">要删除的菜单编号</param>
        /// <returns>返回受影响行数</returns>
        Task<int> DeleteMenu(int Mid);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="Mid">菜单编号</param>
        /// <returns>返回菜单数据信息</returns>
        Task<Menu> GetMenuInfo(int Mid);
        /// <summary>
        /// 查看省份有子菜单
        /// </summary>
        /// <param name="Mid"></param>
        /// <returns></returns>
        Task<int> MenuCount(int Mid);
        /// <summary>
        /// 父级
        /// </summary>
        /// <param name="Mid"></param>
        /// <returns></returns>
        Task<List<Menu>> fandigui(int Mid);


    }
}
